GtkTreeView: Rework the search window hack so it also works on Wayland
authorJonas Ådahl <jadahl@gmail.com>
Sun, 18 Oct 2015 13:23:12 +0000 (21:23 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 27 Oct 2015 00:41:02 +0000 (08:41 +0800)
commitaedd193c69f5857917369c083be04bd24a1e770e
tree7f9043e7661493fc6688779368b86e1975233bc6
parentbcb28adba3b1229a74e60efe7a96c19441265b8d
GtkTreeView: Rework the search window hack so it also works on Wayland

The search window of a tree view was implemented by showing without
making it visible by by positioning it outside the screen edge. This is
not possible on Wayland, so implement another method for being able to
enter text into a non-visible entry.

The new method is implemented by, before showing the window, pass the
key event directly to the IM context backing the entry. If the key
event triggered the context to commit new text or change the preedit
content, the search window is shown, and from that point the key events
are forwarded directly to the entry widget.

https://bugzilla.gnome.org/show_bug.cgi?id=756780
gtk/gtktreeview.c